package com.pgy.general.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pgy.general.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Cc
 * @since 2021-01-26
 * 代码示例可以参考
 */
public interface IUserService extends IService<User> {
    boolean saveUser(User user);
    User queryByName(User user);
    User queryById(String userId);
    boolean deleteUser(int userId);

    Page<User> querusers(Integer currrntPage, Integer size, Integer townId, Integer villageId, String keywords, User userByToken);

}
